package com.security.demo.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.security.demo.entity.User;

public interface UserRepository extends JpaRepository<User, Long> ,JpaSpecificationExecutor<User>  {

	User findByUsername(String username);

	User findByUsernameAndPassword(String username, String password);
	
}
